<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.sms.note.*"%>
<%@ page import="net.sf.json.*" %>	
<%@ page import="com.sms.user.*" %>

<%--	//清除内存
	response.setHeader("Pragma","No-cache"); 
	response.setHeader("Cache-Control","no-cache"); 
	response.setDateHeader("Expires", 0); 
	response.flushBuffer();
--%> 
	
<%
	String userno = (String)session.getAttribute("userno");
	String role = (String)session.getAttribute("role");
	String name = "";
	if(userno != null && role != null) {
		name = User.getName(role, userno);
	} else {
		response.sendRedirect("login_in.html");
	}
	
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>实验室管理系统</title>
<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" type="text/css"   href="easyui/themes/default/easyui.css"/>
<link rel="stylesheet" type="text/css"  href="easyui/themes/icon.css" />
<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>
<link href="css/main.css" rel="stylesheet" type="text/css" />
<link href="css/loads.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container" class="easyui-layout">
		<div region="north"  id="north" border="none">
               <img src="images/people.png" style="margin-left:68px;" /><img  src="images/font.png" style="margin-left:54px; margin-bottom:18px;margin-top:39px;" />
               <div id="welcom">
                   <p style="height:19px;">欢迎您登陆系统,<%= name %>&nbsp;&nbsp;&nbsp;<span  id="who" style="color:#F90;"><%= role %></span><img src="images/exit.png" align="texttop" style="margin-left:4px; float:none;" /><a href="javascript:void(0)">退出</a> 
                   </p>
                   <p style="height:26px; margin-top:3px;"><img  src="images/date.png"  style="margin-left:10px;" /><span class="time"></span><span class="time"></span></p>  
               </div>
               <div style="clear:both;"></div>
         </div>
         <!--left-->
         <div region="west"  id="west" border="none" style="width:182px;height:595px;">
            <div id="left-top">
              <div style="background-color:#FFF;margin:0 auto; width:173px;height:262px;">
                <p><img src="images/manager.png"  style="margin-left:17px;margin-right:10px;"/><img src="images/left-font.png"  style="margin-top:10px;" /></p>
                 <ul><li><a name="project">项目管理</a><span></span></li>     <!--注意载入页面的宽度-->
                     <li><a name="people">人员管理</a><span></span></li>
                     <li><a name="public_report">公告管理</a><span></span></li>
                     <li><a name="homework_manage">作业管理</a><span></span></li>
                     <li><a name="day_report">日常汇报管理</a><span></span></li>
                     <li><a name="personalinfo_manage">个人信息管理</a><span></span></li>
                 </ul>
              </div>
            </div>
            <div id="left-bottom">
              <div style="background-color:#FFF;margin:0 auto; width:173px;height:262px;">
                <p><img src="images/clock.png" style="margin-left:17px; margin-right:10px;"/><img src="images/moves.png"  style="margin-top:10px;"/></p>  <!--上下对齐默认不同！！！！！-->                                

              <ul style="font-size:12px;">
<%
        List<Map> jlist=new ArrayList<Map> ();
    	jlist=Note.query();
    	if(jlist != null && jlist.size() > 0) {
    	 for(int i=0;i<jlist.size();i++){
    		 Map map=jlist.get(i);
    		 

%>                     
               
                  <li><%= map.get("title") %> </li>
 <%
 }
 }
  %>               
                  <li><span id="more" style="color:#F00; width:45px; margin-right:0px;">&gt;&gt;更多</span></li>                                   
                </ul>
               
                </div>
             
            </div>
         
         </div>
		  <!--right-->
		<div region="center"  style="height:595px;" border="none">
             <div class="easyui-tabs" style="width:810px;height:585px; margin-left:8px;margin-top:8px;border:1px solid #CCC;" border="false" >
             </div>
        </div>
         <!--bottom-->
         <div region="south"  id="south" style="height:64px;"  border="none">
            <p style="white-space:pre; width:500px;margin:0 auto; margin-top:22px;">重庆邮电大学 版权所有  Tel:023-6477818  地址:重庆市南岸区崇文路2号附2号</p>
        </div>
</div>

<script type="text/javascript" src="js/main.js"></script>

<script type="text/javascript">

$(document).ready(function(){



//加载单条的公告信息	
  /* $("#more").click(function(){
	   //alert("hello");
	   
	   $(".easyui-tabs").tabs('add',{title:'公告信息',cache:false,
	    	closable:true,
	    	loadingMessage:"正在载入信息,请稍等.....",
	    	href:'latestnote.jsp'
			});    
			
	   
   })	
   */
})
</script>
</body>
</html>
